package com.pmoc.framework.core.model;

import lombok.Data;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Id;
import java.io.Serializable;

/**
 * Entity
 *
 * @author humdeef
 * @summary Entity
 * @since 2019-05-13 18:21
 */
@javax.persistence.Entity(name = "entity")
@Data
@ToString
public class Entity implements Serializable {


    /**
     * 全局id
     */
    @Id
    private Long tid;

    @Column(name = "app_name",columnDefinition = "varchar(200) default '' ")
    private String appName;

    /**
     * 真实value
     */
    @Column(name = "value",columnDefinition="varchar(500)")
    private String value;
    /**
     * 是否存在间隙
     */
    @Column(name = "exist_gap",columnDefinition ="tinyint(4) default 0")
    private Boolean existGap = false;
}
